<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:rg="http://www.ruijie.com.cn/faces/ui"
	xmlns:c="http://java.sun.com/jstl/core"
	template="/layout/contentLayout.xhtml">

	<ui:param name="param_pageTitle"
		value="#{messages.luyuan_crm_menu_order}" />
	<ui:param name="param_navigationUrl"
		value="/luyuan/sale/layout/navigationSale.jsf" />

	<ui:define name="road">
		<span><h:outputLink value="">#{messages.luyuan_crm_sale_question}</h:outputLink></span>
	</ui:define>

	<!-- content -->
	<ui:define name="content">
		<h:form id="questionListForm">
			<rg:areaPanel>

				<rg:titlePanel headerTitle="#{messages.luyuan_crm_sale_question}"
					style="margin-top: 10px;" needButton="true" readonly="false">

					<ui:define name="headerActions">
						<h:commandLink
							onclick="UI.instance.showDialog({id:'addQuestion', src:'/luyuan/sale/addQuestion.jsf'});"
							value="#{messages.luyuan_crm_add}" />
					</ui:define>

					<rg:table id="questionTable"
						value="#{questionListAction.tableModel}" var="item">
						<rg:column property="id" type="checkbox" headerType="checkbox"
							headerStyle="width:4%;" />
						<rg:column property="questionName" title="申请表名字" width="100" />
						<rg:column type="oper" title="#{messages.luyuan_crm_operator}">
							<ul class="links">
								<li><h:commandLink
										action="#{questionListAction.delQuestion(item.id)}"
										value="#{messages.luyuan_crm_delete}" /></li>
								<h:panelGroup>
                                        <a href="#{ctx}/luyuan/sale/questionExtend.jsf?uuid=#{item.id}" >子项</a>
                                    </h:panelGroup>
                                    
							</ul>
						</rg:column>
					</rg:table>
				</rg:titlePanel>
			</rg:areaPanel>
		</h:form>
		<a:form>
			<a:jsFunction name="reRenderQuestionTable" reRender="questionTable" />
		</a:form>
	</ui:define>
</ui:composition>